package com.itheima.store.domain;

import java.util.Date;

/**
 * 图书的实体:
 * @author admin
 *CREATE TABLE `book` (
    book_id             varchar(100) not null,
   book_number         varchar(1000),   
   book_name           varchar(1000),   
   book_author         varchar(2000),
   book_image          varchar(1000),
   book_createTime     datetime,
   book_introduce      varchar(3000),
   book_status         varchar(1),
   isunder              varchar(1),
   book_category_id    varchar(100),
   createPerson_id      varchar(100),
   ceratePerson         varchar(100),
   unfoCricum           varchar(1000), 
   inventory               int,
   ishot                      int,
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 */
public class Book {
	private String book_id;       
	private String book_number;    //图书编号
	private String book_name;      //图书名称
	private String book_author;    //作者
 	private String book_image;     //图片
	private Date book_createTime;  //上架日期
	private String book_introduce; //图书简介
	private String book_status;    //图书状态
	private Integer isunder;       //是否上架  0:上架  1：下架
	private String book_category_id;//图书类别id
	private String createPerson_id; //创建人id
	private String ceratePerson;    //创建人
 	private String unfoCricum;      //备注
	private Integer inventory;      //库存
	private Integer ishot;          //是否热门  0:热门 1：不热门
	
	// 一对多的关系在表中是通过外键的方式描述,开发语言是Java面向对象.
		// Hibernate框架：ORM的DAO层框架 .ORM:Object-Relational Mapping  session.save(book);
	
	public String getBook_id() {
		return book_id;
	}
	public void setBook_id(String book_id) {
		this.book_id = book_id;
	}
	public String getBook_number() {
		return book_number;
	}
	public void setBook_number(String book_number) {
		this.book_number = book_number;
	}
	public String getBook_name() {
		return book_name;
	}
	public void setBook_name(String book_name) {
		this.book_name = book_name;
	}
	public String getBook_author() {
		return book_author;
	}
	public void setBook_author(String book_author) {
		this.book_author = book_author;
	}
	public String getBook_image() {
		return book_image;
	}
	public void setBook_image(String book_image) {
		this.book_image = book_image;
	}
	public Date getBook_createTime() {
		return book_createTime;
	}
	public void setBook_createTime(Date book_createTime) {
		this.book_createTime = book_createTime;
	}
	public String getBook_introduce() {
		return book_introduce;
	}
	public void setBook_introduce(String book_introduce) {
		this.book_introduce = book_introduce;
	}
	public String getBook_status() {
		return book_status;
	}
	public void setBook_status(String book_status) {
		this.book_status = book_status;
	}
	public Integer getIsunder() {
		return isunder;
	}
	public void setIsunder(Integer isunder) {
		this.isunder = isunder;
	}
	public String getBook_category_id() {
		return book_category_id;
	}
	public void setBook_category_id(String book_category_id) {
		this.book_category_id = book_category_id;
	}
	public String getCreatePerson_id() {
		return createPerson_id;
	}
	public void setCreatePerson_id(String createPerson_id) {
		this.createPerson_id = createPerson_id;
	}
	public String getCeratePerson() {
		return ceratePerson;
	}
	public void setCeratePerson(String ceratePerson) {
		this.ceratePerson = ceratePerson;
	}
	public String getUnfoCricum() {
		return unfoCricum;
	}
	public void setUnfoCricum(String unfoCricum) {
		this.unfoCricum = unfoCricum;
	}
	public Integer getInventory() {
		return inventory;
	}
	public void setInventory(Integer inventory) {
		this.inventory = inventory;
	}
	public Integer getIshot() {
		return ishot;
	}
	public void setIshot(Integer ishot) {
		this.ishot = ishot;
	}
	
}
